package com.demo.snowflake.dto;

import com.demo.snowflake.annotation.DataTitle;
import com.demo.snowflake.util.DataTitleUtil;
import lombok.Data;

@Data
public class Student {

    @DataTitle(name = "name",describe = "学生姓名")
    private String name;

    @DataTitle(name = "age",describe = "学生年龄")
    private String age;

    @DataTitle(name = "num",describe = "学生编号")
    private String num;

    public static void main(String[] args) {
        System.out.println(DataTitleUtil.getDataTitle(Student.class));
    }

}
